﻿
namespace KingerRobot.MexicoSailunMDC.SpiService;

internal interface IWcsWarehouseCrnMaterial
{
    /// <summary>
    /// 根据物料id查找堆垛机物料关联信息
    /// </summary>
    /// <param name="MaterialId"></param>
    /// <returns></returns>
    List<WarehouseCrnMaterialBean> GetWarehouseCrnMaterialByMaterialId(List<PORcsEquipCrn> crns, long MaterialId);
    /// <summary>
    /// 通过物料获取库存信息
    /// </summary>
    /// <param name="mateiralId"></param>
    /// <returns></returns>
    List<POWcsWarehouseCrnMaterial> GetWcsWarehouseCrnMaterialsByMateiralId(long mateiralId);

    /// <summary>
    /// 获取库存
    /// </summary>
    /// <param name="materialId"></param>
    /// <returns></returns>
    int GetWareHouseStockNoSummaryByMaterialId(long materialId);
}

public class WarehouseCrnMaterialBean
{
    public long MaterialId { get; set; }
    public long CrnId { get; set; }
    public long WarehouseId { get; set; }
    public int Count { get; set; }
}